<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/common/includes.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
	<title>登录</title>
	<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
			<meta http-equiv="expires" content="0">
				<script type="text/javascript" src="${ctx }/js/jquery.js"></script>
				<script type="text/javascript" src="${ctx }/js/login.js"></script>
				<link href="${ctx }/css/common.css" rel="stylesheet" type="text/css"
					media="screen" />
</head>

<body>
<script>
<c:if test="${errorCode > 0 }">
alert("${msg }");
</c:if>
</script>
	<br />
	<!-- nav -->
	<div class="w">
		<div id="tabs" class="fl">
			<ul style="padding-top: 22px;">
				<li id="current"><a href="javascript:void(0);" title="用户登录"><span>${projectName }</span>
				</a></li>
			</ul>
		</div>
		<div id="sub_tabs">&nbsp;</div>
		<div id="tabsline">&nbsp;</div>
		<div id="tabsline"
			style="border-left: #FFFFFF solid 2px; border-right: #FFFFFF solid 2px;">
			&nbsp;</div>
	</div>
	<div id="m2" class="w" style="margin-top: 8px;">
		<div class="fl" style="padding-left: 30px;">
			<br /> <font color="red">${tip}</font>
			<form id="login_form" method="post"
				action="${ctx }/manager/loginIn.action">
				<div id="form_box">
					<p>
						<font color="red"></font>
					</p>
					<p>
						<label for="username">请输入用户名：</label><br /> <input type="text"
							name="userName" id="userName"  value="${userName }" maxlength="18"
							style="width: 180px;"/><span id="username_msg"></span>
					</p>
					<p>
						<label for="version_info">请输入用户密码：</label><br /> <input
							type="password" name="password" id="pwd"
							onKeyPress="if(event.keyCode==13) $('#link_sumbit').click();"
							maxlength="18" style="width: 180px;" /><span id="password_msg"></span>
					</p>
				</div>

				<div class="vb" style="width: 100px;">
					<a href="javascript:void(0);" id="link_sumbit" onclick="login()">
						<div class="vb_l">&nbsp;</div>
						<div class="vb_b">
							<span>登 录</span>
						</div>
						<div class="vb_l">&nbsp;</div>
					</a>
				</div>
			</form>

		</div>
		<br class="cb" /> <br class="cb" />
	</div>
	<div class="w" id="foot"></div>
</body>
</html>
